package com.cskaoyan.bean.common;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@NoArgsConstructor
@Data
@AllArgsConstructor
public class Market_Goods_Comment {
    @JsonProperty("errno")
    private Integer errno;
    @JsonProperty("data")
    private DataDTO data;
    @JsonProperty("errmsg")
    private String errmsg;

    @NoArgsConstructor
    @Data
    @AllArgsConstructor
    public static class DataDTO {
        @JsonProperty("total")
        private Integer total;
        @JsonProperty("pages")
        private Integer pages;
        @JsonProperty("limit")
        private Integer limit;
        @JsonProperty("page")
        private Integer page;
        @JsonProperty("list")
        private List<ListDTO> list;

        @NoArgsConstructor
        @Data
        @AllArgsConstructor
        public static class ListDTO {
            @JsonProperty("id")
            private Integer id;
            @JsonProperty("valueId")
            private Integer valueId;
            @JsonProperty("type")
            private Integer type;
            @JsonProperty("content")
            private String content;
            @JsonProperty("adminContent")
            private String adminContent;
            @JsonProperty("userId")
            private Integer userId;
            @JsonProperty("hasPicture")
            private Boolean hasPicture;
            @JsonProperty("picUrls")
            private String[] picUrls;
            @JsonProperty("star")
            private Integer star;
            @JsonProperty("addTime")
            private Date addTime;
            @JsonProperty("updateTime")
            private Date updateTime;
            @JsonProperty("deleted")
            private Boolean deleted;
        }
    }
}
